package ao.com.bna.util;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class BeanFactory {
	
private static ClassPathXmlApplicationContext ctx;

static{
	ctx = new ClassPathXmlApplicationContext("ao/com/bna/configuracao/spring.xml");
}

private BeanFactory(){
	
}
public static Object getBean(String beanName){
	return ctx.getBean(beanName);
}

public static Object getBean(String beanName,Class classe){
	return ctx.getBean(beanName,classe);
}
}
